<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>FEUP-Defender: Referência ao ficheiro inimigos.c</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'Localizar');
--></script>
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='../../open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='../../closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='../../closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="../../index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="../../modules.html"><span>Módulos</span></a></li>
      <li><a href="../../annotated.html"><span>Estruturas&nbsp;de&nbsp;dados</span></a></li>
      <li class="current"><a href="../../files.html"><span>Ficheiros</span></a></li>
      <li><a href="../../dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="../../search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Localizar" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="../../files.html"><span>Lista&nbsp;de&nbsp;ficheiros</span></a></li>
      <li><a href="../../globals.html"><span>Globais</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referência ao ficheiro inimigos.c</h1><code>#include &quot;<a class="el" href="../../d0/d90/inimigos_8c_source.html">pixmaps\pixmap_inimigos.h</a>&quot;</code><br/>
<div class="dynheader">
Diagrama de dependências de inclusão para inimigos.c:</div>
<div class="dynsection">
<div class="center"><img src="../../dd/dd6/inimigos_8c__incl.png" border="0" usemap="#inimigos_8c_map" alt=""/></div>
</div>
<div class="dynheader">
Este grafo mostra quais são os ficheiros que incluem directamente ou indirectamente este ficheiro:</div>
<div class="dynsection">
<div class="center"><img src="../../da/dc9/inimigos_8c__dep__incl.png" border="0" usemap="#inimigos_8cdep_map" alt=""/></div>
</div>

<p><a href="../../d0/d90/inimigos_8c_source.html">Ir para o código fonte deste ficheiro.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Funções</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/d3a/structSprite.html">Sprite</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d90/inimigos_8c.html#a15e299a0b6cfe370dd94f70a3c5cd107">cria_inimigo</a> (char *video_base, int tipo, int pos_x, int pos_y, int x_speed, int y_speed)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d90/inimigos_8c.html#a2287a6ee8eb79113b84b00f43c0a6b89">desenha_inimigo</a> (<a class="el" href="../../da/d3a/structSprite.html">Sprite</a> *inimigo, char *video_base)</td></tr>
</table>
<hr/><h2>Documentação das funções</h2>
<a class="anchor" id="a15e299a0b6cfe370dd94f70a3c5cd107"></a><!-- doxytag: member="inimigos.c::cria_inimigo" ref="a15e299a0b6cfe370dd94f70a3c5cd107" args="(char *video_base, int tipo, int pos_x, int pos_y, int x_speed, int y_speed)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d3a/structSprite.html">Sprite</a>* cria_inimigo </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>video_base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>tipo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pos_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pos_y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x_speed</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y_speed</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definido na linha <a class="el" href="../../d0/d90/inimigos_8c_source.html#l00003">3</a> do ficheiro <a class="el" href="../../d0/d90/inimigos_8c_source.html">inimigos.c</a>.</p>

<p><div class="dynheader">
Grafo de chamadas desta função:</div>
<div class="dynsection">
<div class="center"><img src="../../d0/d90/inimigos_8c_a15e299a0b6cfe370dd94f70a3c5cd107_cgraph.png" border="0" usemap="#d0/d90/inimigos_8c_a15e299a0b6cfe370dd94f70a3c5cd107_cgraph_map" alt=""></div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="../../d0/d90/inimigos_8c_a15e299a0b6cfe370dd94f70a3c5cd107_icgraph.png" border="0" usemap="#d0/d90/inimigos_8c_a15e299a0b6cfe370dd94f70a3c5cd107_icgraph_map" alt=""></div>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2287a6ee8eb79113b84b00f43c0a6b89"></a><!-- doxytag: member="inimigos.c::desenha_inimigo" ref="a2287a6ee8eb79113b84b00f43c0a6b89" args="(Sprite *inimigo, char *video_base)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void desenha_inimigo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../da/d3a/structSprite.html">Sprite</a> *&nbsp;</td>
          <td class="paramname"> <em>inimigo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>video_base</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definido na linha <a class="el" href="../../d0/d90/inimigos_8c_source.html#l00017">17</a> do ficheiro <a class="el" href="../../d0/d90/inimigos_8c_source.html">inimigos.c</a>.</p>

<p><div class="dynheader">
Grafo de chamadas desta função:</div>
<div class="dynsection">
<div class="center"><img src="../../d0/d90/inimigos_8c_a2287a6ee8eb79113b84b00f43c0a6b89_cgraph.png" border="0" usemap="#d0/d90/inimigos_8c_a2287a6ee8eb79113b84b00f43c0a6b89_cgraph_map" alt=""></div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="../../d0/d90/inimigos_8c_a2287a6ee8eb79113b84b00f43c0a6b89_icgraph.png" border="0" usemap="#d0/d90/inimigos_8c_a2287a6ee8eb79113b84b00f43c0a6b89_icgraph_map" alt=""></div>
</div>
</p>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Tudo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Estruturas de dados</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Ficheiros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Definições de tipos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerações</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Valores da enumeração</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Gerado em Tue Jun 1 21:46:45 2010 para FEUP-Defender por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
